import request from '@/utils/request'

// 查询列表
export function list(query) {
  return request({
    url: '/service/supplier/list',
    method: 'get',
    params: query
  })
}

// 查询岗位详细
export function get(supplierManagementId) {
  return request({
    url: '/service/supplier/' + supplierManagementId,
    method: 'get'
  })
}

// 新增
export function add(data) {
  return request({
    url: '/service/supplier',
    method: 'post',
    data: data
  })
}

// 修改
export function update(data) {
  return request({
    url: '/service/supplier',
    method: 'put',
    data: data
  })
}

// 删除
export function del(supplierManagementIds) {
  return request({
    url: '/service/supplier/' + supplierManagementIds,
    method: 'delete'
  })
}

// 查询列表
export function getSelection() {
  return request({
    url: '/service/supplier/getSelection',
    method: 'get',
  })
}
